package com.diandian.backend.dingding.data.clients.dto;

import java.util.List;

public class OapiUserListsimpleResponse extends TaobaoResponse {
    private Long errcode;
    private String errmsg;
    private PageResult result;

    public OapiUserListsimpleResponse() {
    }

    public void setErrcode(Long errcode) {
        this.errcode = errcode;
    }

    public Long getErrcode() {
        return this.errcode;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public String getErrmsg() {
        return this.errmsg;
    }

    public void setResult(PageResult result) {
        this.result = result;
    }

    public PageResult getResult() {
        return this.result;
    }

    public boolean isSuccess() {
        return this.getErrcode() == null || this.getErrcode().equals(0L);
    }

    public static class ListUserSimpleResponse {
        private String name;
        private String userid;

        public ListUserSimpleResponse() {
        }

        public String getName() {
            return this.name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getUserid() {
            return this.userid;
        }

        public void setUserid(String userid) {
            this.userid = userid;
        }
    }

    public static class PageResult {
        private static final long serialVersionUID = 8478962629673273735L;
        private Boolean hasMore;
        private List<ListUserSimpleResponse> list;
        private Long nextCursor;

        public PageResult() {
        }

        public Boolean getHasMore() {
            return this.hasMore;
        }

        public void setHasMore(Boolean hasMore) {
            this.hasMore = hasMore;
        }

        public List<ListUserSimpleResponse> getList() {
            return this.list;
        }

        public void setList(List<ListUserSimpleResponse> list) {
            this.list = list;
        }

        public Long getNextCursor() {
            return this.nextCursor;
        }

        public void setNextCursor(Long nextCursor) {
            this.nextCursor = nextCursor;
        }
    }
}